…existing code…

      // 新增：给各 Overlay 右键注册编辑
      Object.entries(overlaysRef.value).forEach(([type, overlayGroup]) => {
-        overlayGroup.on('rightclick', (evt: any) => {
+        overlayGroup.on('rightclick', (evt: any) => {
+          console.log('overlayGroup rightclick:', type, evt)
          geometryEditorRef.value.setActiveOverlay(type)
          if (evt.id) {
            geometryEditorRef.value.setActiveGeometry(evt.id)
          }
          geometryEditorRef.value.setActionMode(
            window.TMap.tools.constants.EDITOR_ACTION.EDIT
          )
        })
      })

      // 右键地图触发编辑模式
-      mapInstance.value.on('rightclick', (e: any) => {
+      mapInstance.value.on('rightclick', (e: any) => {
+        console.log('map rightclick at', e)
        if (activeType) {
          geometryEditorRef.value.setActiveOverlay(activeType)
          geometryEditorRef.value.setActionMode(
            window.TMap.tools.constants.EDITOR_ACTION.EDIT
          )
        }
      })

…existing code…

      // 在绘制完成的 overlay 上注册右键编辑
      const ov = geometry.overlay
      if (ov && typeof ov.on === 'function') {
-        ov.on('rightclick', (evt: any) => {
+        ov.on('rightclick', (evt: any) => {
+          console.log('overlay instance rightclick, id:', geometry.id, evt)
          geometryEditorRef.value.setActiveOverlay(type)
          geometryEditorRef.value.setActiveGeometry(geometry.id)
          geometryEditorRef.value.setActionMode(
            window.TMap.tools.constants.EDITOR_ACTION.EDIT
          )
        })
      }

…existing code…
